/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package empresa;

/**
 *
 * @author alumnom
 */
public class Empresa {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        Empleado e1 = new Empleado("Andres", "Casado", "534324", 3, 1000, true);
        
        System.out.println(e1.mostraDatos());
        Empleado e2 = new Empleado("Lazaro", "Rivera", "7626233", 5, 1000, true);
        System.out.println(e2.mostraDatos());
        //e1.darbaja();
        System.out.println(e1.consultarEmpleados());
        System.out.println(e2.presentarDatos());
        Informático i1 = new Informático("Benito", "Perez", "4543", 1, 1000, true, "Informático");
        System.out.println(i1.mostraDatos());
        Comercial c1 = new Comercial("Pepe", "lopez", "534543", 6, 1000, true);
        System.out.println(c1.mostraDatos());
        System.out.println(i1.consultarinformaticos());
         
    }
    
}
